<?xml version="1.0" encoding="utf-8"?>
<xs:schema xmlns:ser="http://schemas.microsoft.com/2003/10/Serialization/" xmlns:tns="http://schemas.datacontract.org/2004/07/MiHealthService.Model" elementFormDefault="qualified" targetNamespace="http://schemas.datacontract.org/2004/07/MiHealthService.Model" xmlns:xs="http://www.w3.org/2001/XMLSchema">
  <xs:import schemaLocation="http://123.30.210.2:6969/Service.svc?xsd=xsd1" namespace="http://schemas.microsoft.com/2003/10/Serialization/" />
  <xs:complexType name="User">
    <xs:sequence>
      <xs:element minOccurs="0" name="Avatar" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="Birthday" type="xs:dateTime" />
      <xs:element minOccurs="0" name="Email" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="FacebookID" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="Gender" type="xs:boolean" />
      <xs:element minOccurs="0" name="Height" type="xs:float" />
      <xs:element minOccurs="0" name="Id" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="Location" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="Name" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="Password" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="UsedTime" type="ser:duration" />
      <xs:element minOccurs="0" name="Weight" type="xs:float" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="User" nillable="true" type="tns:User" />
  <xs:complexType name="ArrayOfUser">
    <xs:sequence>
      <xs:element minOccurs="0" maxOccurs="unbounded" name="User" nillable="true" type="tns:User" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="ArrayOfUser" nillable="true" type="tns:ArrayOfUser" />
  <xs:complexType name="ArrayOfTrick">
    <xs:sequence>
      <xs:element minOccurs="0" maxOccurs="unbounded" name="Trick" nillable="true" type="tns:Trick" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="ArrayOfTrick" nillable="true" type="tns:ArrayOfTrick" />
  <xs:complexType name="Trick">
    <xs:sequence>
      <xs:element minOccurs="0" name="Content" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="TrickID" nillable="true" type="xs:string" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="Trick" nillable="true" type="tns:Trick" />
  <xs:complexType name="ArrayOfActivity">
    <xs:sequence>
      <xs:element minOccurs="0" maxOccurs="unbounded" name="Activity" nillable="true" type="tns:Activity" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="ArrayOfActivity" nillable="true" type="tns:ArrayOfActivity" />
  <xs:complexType name="Activity">
    <xs:sequence>
      <xs:element minOccurs="0" name="ActivityID" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="ImagePath" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="METValue" type="xs:float" />
      <xs:element minOccurs="0" name="Name" nillable="true" type="xs:string" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="Activity" nillable="true" type="tns:Activity" />
  <xs:complexType name="ArrayOfFoodGroup">
    <xs:sequence>
      <xs:element minOccurs="0" maxOccurs="unbounded" name="FoodGroup" nillable="true" type="tns:FoodGroup" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="ArrayOfFoodGroup" nillable="true" type="tns:ArrayOfFoodGroup" />
  <xs:complexType name="FoodGroup">
    <xs:sequence>
      <xs:element minOccurs="0" name="Id" type="xs:int" />
      <xs:element minOccurs="0" name="Image" nillable="true" type="xs:anyURI" />
      <xs:element minOccurs="0" name="Name" nillable="true" type="xs:string" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="FoodGroup" nillable="true" type="tns:FoodGroup" />
  <xs:complexType name="ArrayOfFood">
    <xs:sequence>
      <xs:element minOccurs="0" maxOccurs="unbounded" name="Food" nillable="true" type="tns:Food" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="ArrayOfFood" nillable="true" type="tns:ArrayOfFood" />
  <xs:complexType name="Food">
    <xs:sequence>
      <xs:element minOccurs="0" name="Calories" type="xs:float" />
      <xs:element minOccurs="0" name="FoodID" type="xs:int" />
      <xs:element minOccurs="0" name="ImagePath" nillable="true" type="xs:anyURI" />
      <xs:element minOccurs="0" name="Name" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="Path" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="Unit" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="Weight" type="xs:float" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="Food" nillable="true" type="tns:Food" />
  <xs:complexType name="NutritionFactsAndImage">
    <xs:sequence>
      <xs:element minOccurs="0" name="Calories" type="xs:float" />
      <xs:element minOccurs="0" name="ImagePath" nillable="true" type="xs:anyURI" />
      <xs:element minOccurs="0" name="NutriItems" nillable="true" type="tns:ArrayOfNutritionFacts" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="NutritionFactsAndImage" nillable="true" type="tns:NutritionFactsAndImage" />
  <xs:complexType name="ArrayOfNutritionFacts">
    <xs:sequence>
      <xs:element minOccurs="0" maxOccurs="unbounded" name="NutritionFacts" nillable="true" type="tns:NutritionFacts" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="ArrayOfNutritionFacts" nillable="true" type="tns:ArrayOfNutritionFacts" />
  <xs:complexType name="NutritionFacts">
    <xs:sequence>
      <xs:element minOccurs="0" name="Amount" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="Name" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="NutrientsId" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="Percent" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="Type" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="Unit" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="Weight" nillable="true" type="xs:string" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="NutritionFacts" nillable="true" type="tns:NutritionFacts" />
  <xs:complexType name="UsedActivity">
    <xs:sequence>
      <xs:element minOccurs="0" name="ActivityID" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="Calories" type="xs:float" />
      <xs:element minOccurs="0" name="Distance" type="xs:float" />
      <xs:element minOccurs="0" name="TimeEnd" type="xs:dateTime" />
      <xs:element minOccurs="0" name="TimeStart" type="xs:dateTime" />
      <xs:element minOccurs="0" name="UsedID" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="UserID" nillable="true" type="xs:string" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="UsedActivity" nillable="true" type="tns:UsedActivity" />
  <xs:complexType name="ArrayOfMapPath">
    <xs:sequence>
      <xs:element minOccurs="0" maxOccurs="unbounded" name="MapPath" nillable="true" type="tns:MapPath" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="ArrayOfMapPath" nillable="true" type="tns:ArrayOfMapPath" />
  <xs:complexType name="MapPath">
    <xs:sequence>
      <xs:element minOccurs="0" name="Latitude" type="xs:float" />
      <xs:element minOccurs="0" name="Location" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="Longitude" type="xs:float" />
      <xs:element minOccurs="0" name="UsedID" nillable="true" type="xs:string" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="MapPath" nillable="true" type="tns:MapPath" />
</xs:schema>